package jf.jextn.converter;


public class ByteConveter extends NumberConverter<Byte> {
    public final static ByteConveter INSTANCE = new ByteConveter();

    @Override
    protected Byte from(String value, int radix) {
        return Byte.valueOf(value, radix);
    }

    @Override
    protected String to(Byte value, int radix) {
        return Byte.toString(value.byteValue());
    }

    @Override
    public void setRadix(int radix) {
        throw new UnsupportedOperationException("radix not supported by byte converter");
    }
}
